package com.ruoyi.project.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 收费记录对象 siyu_charge
 */
@Data
public class SiyuCharge extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 扣费单号
     */
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 扣费产品
     */
    private Integer productId;

    /**
     * 进件单号
     */
    private Integer queryId;

    /**
     * 扣前余额
     */
    private BigDecimal beforeBalance;

    /**
     * 扣费额
     */
    private BigDecimal costNum;

    /**
     * 扣后余额
     */
    private BigDecimal afterBalance;

    private String authCode;

    private String type;

    public SiyuCharge() {
    }

    public SiyuCharge(Integer userId,String type, Integer queryId, BigDecimal beforeBalance, BigDecimal costNum,
                      BigDecimal afterBalance, Integer productId, String authCode) {
        this.userId = userId;
        this.type = type;
        this.queryId = queryId;
        this.beforeBalance = beforeBalance;
        this.costNum = costNum;
        this.afterBalance = afterBalance;
        this.productId = productId;
        this.authCode = authCode;
    }

}
